

def main():
    a, b = map(int, input().split())
    s = 0
    if a > b:
        s = b
    else:
        s = a
    print(s*s)


if __name__ == '__main__':
    main()
